home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir27 / chemcom.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1994-01-02  |  3KB  |  119 lines

  1. ECHO OFF
  2. CLS
  3. IF %1x==x GOTO NODRIVE
  4. IF %2x==x GOTO NODRIVE
  5. IF %1x==%2x GOTO NODRIVE
  6. GOTO YESDRIVE
  7.  
  8. :NODRIVE
  9. ECHO.
  10. ECHO      This routine is for installing `Personal CHEMCOM' on a
  11. ECHO      HARD disk.  If you DO NOT have one, then you will not be
  12. ECHO      able to use this software.  Sorry, but the floppy drive
  13. ECHO      installation version is no longer being distributed.
  14. ECHO      Once installed on your hard disk, however, the program
  15. ECHO      files could be copied to and the program operated from a
  16. ECHO      3.5" floppy disk.
  17. ECHO.
  18. ECHO      The `Personal CHEMCOM' installation routine requires that
  19. ECHO      you specify two drives.  You must specify the drive you are
  20. ECHO      at now and the hard drive where you want it installed.
  21. ECHO      It must be either the C or D hard drive.
  22. ECHO .
  23. ECHO      For example, INSTALL A: C:  . . . Please try again.
  24. GOTO END
  25.  
  26. :YESDRIVE
  27. ECHO .
  28. ECHO .
  29. ECHO      This routine is for installing `Personal CHEMCOM' on a C or D
  30. ECHO      hard disk.  If you do not want to do this at this time,
  31. ECHO      then press the "Ctrl" + "Break" keys together and then "Y"
  32. ECHO      to stop this batch file.  Sorry, but the floppy drive
  33. ECHO      installation version is no longer being distributed.
  34. ECHO      Once installed on your hard disk, however, the program
  35. ECHO      files could be copied to and the program operated from a
  36. ECHO      3.5" floppy disk.
  37. ECHO .
  38. ECHO Otherwise . . .
  39. ECHO .
  40. PAUSE
  41. CLS
  42. GOTO TRY1
  43.  
  44. :TRY1
  45. ECHO OFF
  46. CLS
  47. IF EXIST %1PCC1.EXE GOTO COPY1
  48. ECHO.
  49. ECHO.
  50. ECHO       The disk in Drive %1 is NOT the CHEMCOM disk.  Insert proper disk and ...
  51. ECHO.
  52. ECHO.
  53. PAUSE
  54. GOTO TRY1
  55.  
  56. :COPY1
  57. CD C:\
  58. IF %2==C: GOTO CBAT
  59. IF %2==c: GOTO CBAT
  60. GOTO DBAT
  61.  
  62. :CBAT
  63. COPY %1PCCC.TXT C:\PCC.BAT
  64. GOTO UPNEXT
  65.  
  66. :DBAT
  67. COPY %1PCCD.TXT C:\PCC.BAT
  68. GOTO UPNEXT
  69.  
  70. :UPNEXT
  71. %2
  72. MD %2\CHEMCOM
  73. CD %2\CHEMCOM
  74. CLS
  75. ECHO OFF
  76. ECHO .
  77. ECHO    Note:  Although `Personal CHEMCOM' is being loaded into a
  78. ECHO           subdirectory called CHEMCOM, you will be able to start
  79. ECHO           the program without changing directories simply by
  80. ECHO           typing PCC and pressing the Enter key.
  81. ECHO .
  82. PAUSE
  83. CLS
  84. ECHO .
  85. ECHO.
  86. ECHO    Please wait while loading the program files . . .
  87. ECHO.
  88. ECHO.
  89.  
  90. COPY %1*.* %2
  91.  
  92. ECHO.
  93. PCC1
  94. ECHO.
  95. PCC2
  96. ECHO.
  97. ECHO.
  98. CD\
  99. C:
  100. CD\
  101. CLS
  102. ECHO.
  103. ECHO.
  104. ECHO.
  105. ECHO.
  106. ECHO.
  107. ECHO.
  108. ECHO      That is it!!!  You're finished.  Now place your ORIGINAL
  109. ECHO      `Personal CHEMCOM' disk away and use your hard drive copy
  110. ECHO      to calculate downwind chemical exposures from accidental
  111. ECHO      releases from chemical processing plants.
  112. ECHO .
  113. ECHO      Refer to the operating instructions for more details on
  114. ECHO      how to use `Personal CHEMCOM'.
  115. ECHO.
  116. ECHO.
  117. GOTO END
  118. :END
  119.